package com.hoshiicloud.market.entity.commission;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author:campchen
 * @Date:Created in 下午 05:12 2019/7/26
 * @PACKAGENAME com.hoshiicloud.market.entity.commission
 * @Description
 */
@Data
public class CommissionRecords implements Serializable {
    public static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableField("id")
    private Long id;
    /**
     * 租合ID
     */
    @TableField("companyid")
    private Long companyid;
    /**
     * 平台ID
     */
    @TableField("platformid")
    private Long platformid;
    /**
     * 店铺ID
     */
    @TableField("storeid")
    private Long storeid;
    /**
     * 流水日期
     */
    @TableField("txdate")
    private LocalDateTime txdate;
    /**
     * 流水类型
     */
    @TableField("txtype")
    private Long txtype;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private Long orderId;
    /**
     * 备注
     */
    @TableField("description")
    private String description;
    /**
     * 入账 账户类型 1-消费者 2-合作伙伴 3-供应商 4-平台
     */
    @TableField("account_type")
    private Long accountType;
    /**
     * 入账 账户ID
     */
    @TableField("account_id")
    private Long accountId;
    /**
     * 入账  1-入账 2-出账
     */
    @TableField("dc")
    private Integer dc;
    /**
     * 交易金额
     */
    @TableField("amount")
    private BigDecimal amount;
    /**
     * 当前余额
     */
    @TableField("banance")
    private BigDecimal banance;
    /**
     * 建立人
     */
    @TableField("createdby")
    private String createdby;
    /**
     * 建立时间
     */
    @TableField("createdtime")
    private LocalDateTime createdtime;
    /**
     * 修改人
     */
    @TableField("updatedby")
    private String updatedby;
    /**
     * 修改时间
     */
    @TableField("updatedtime")
    private LocalDateTime updatedtime;
    /**
     * 是否删除
     */
    @TableField("deleted")
    private Integer deleted;
    /**
     * 状态 0-未入账 1-已入账 3-冲正流水
     */
    @TableField("status")
    private Integer status;
    /**
     * 关联订单ID
     */
    @TableField("refid")
    private Long refid;

}
